com.cete.dynamicpdf.merger
Class ImportedPage
Example : This example shows you how to import one page of an existing PDF and save it as a separate PDF.
import com.cete.dynamicpdf.*;
import com.cete.dynamicpdf.merger.*;
public class MyClass {
public static void main(String args[]) {
// Create a PDF Document
Document document = new Document();
// Create an ImportedPage and add it to the document
ImportedPage page = new ImportedPage( "[physicalpath]/ImportPDF.pdf", 2, 50 );
document.getPages().add( page );
// Save the PDF
document.draw( "[physicalpath]/MyDocument.pdf" );
}
}